<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

$bid = $route->GET("b_id");
$vid = $route->GET("v_id");

$db->sendQuery("delete from `likes` where `vote_id` = '$vid'");
$db->sendQuery("delete from `votes` where `vote_id` = '$vid' limit 1");

goToPage("/admin/b_votes/?b_id=$bid");
?>